package com.hythzx.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by hythzx on 2017/3/5.
 */
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String index(Model model){
        model.addAttribute("title","Hello,world!");
        return "index";
    }

    @RequestMapping("/login")
    public String login(){
        return "login";
    }
}
